using System.Security.Cryptography;
using System.Text;

namespace DealerPlatform.Common.Md5Module;

public static class Md5Helper
{
    public static string ToMd5(this string str)
    {
        byte[] bytes = MD5.HashData(Encoding.Default.GetBytes(str + "@HolyAce"));
        var md5Str = BitConverter.ToString(bytes).Replace("-", "");
        return md5Str;
    }
}